<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ForenEditDlg" widgetVar="ForenEditDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{myBundle.EditForenTitle}" closeOnEscape="true">

            <h:form id="ForenEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{forenController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditForenLabel_id}" for="id" />
                        <h:outputText id="id" value="#{forenController.selected.id}" />


                        <p:outputLabel value="#{myBundle.EditForenLabel_thamount}" for="thamount" />
                        <p:inputText id="thamount" value="#{forenController.selected.thamount}" title="#{myBundle.EditForenTitle_thamount}"/>


                        <p:outputLabel value="#{myBundle.EditForenLabel_anamount}" for="anamount" />
                        <p:inputText id="anamount" value="#{forenController.selected.anamount}" title="#{myBundle.EditForenTitle_anamount}"/>


                        <p:outputLabel value="#{myBundle.EditForenLabel_lastn}" for="lastn" />
                        <p:inputText id="lastn" value="#{forenController.selected.lastn}" title="#{myBundle.EditForenTitle_lastn}" required="true" requiredMessage="#{myBundle.EditForenRequiredMessage_lastn}" size="30" maxlength="30"/>


                        <p:outputLabel value="#{myBundle.EditForenLabel_lastd}" for="lastd" />
                        <p:inputText id="lastd" value="#{forenController.selected.lastd}" title="#{myBundle.EditForenTitle_lastd}" required="true" requiredMessage="#{myBundle.EditForenRequiredMessage_lastd}" size="22" maxlength="22"/>


                        <p:outputLabel value="#{myBundle.EditForenLabel_name}" for="name" />
                        <p:inputTextarea rows="4" cols="30" id="name" value="#{forenController.selected.name}" title="#{myBundle.EditForenTitle_name}" required="true" requiredMessage="#{myBundle.EditForenRequiredMessage_name}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{forenController.save}" value="#{myBundle.Save}" update="display,:ForenListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ForenEditDialog);">
                        <p:confirm header="#{myBundle.ConfirmationHeader}" message="#{myBundle.ConfirmEditMessage}" icon="ui-icon-alert"/>
                    </p:commandButton>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ForenEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
